-- GENERATED SPELL FOR [Jotunheim Sleep-Watcher] --


function spell0_30725(pUnit, Event) --@Bludgeoning Strike,n/a--
pUnit:FullCastSpellOnTarget(60870,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30725', 8287, 1)
end

function spell1_30725(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_30725', 30296, 1)
end

function Sorts_30725(pUnit, Event)
local choix_sorts_30725 = math.random(0, 1)
if choix_sorts_30725 == 0 then
pUnit:RegisterEvent('spell0_30725', 1, 1)
end
if choix_sorts_30725 == 1 then
pUnit:RegisterEvent('spell1_30725', 1, 1)
end
end

function mob30725_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30725', math.random(1500, 3000), 1)
end

function mob30725_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30725_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30725_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30725, 1, 'mob30725_Action')
RegisterUnitEvent(30725, 2, 'mob30725_Leave')
RegisterUnitEvent(30725, 3, 'mob30725_Kill')
RegisterUnitEvent(30725, 4, 'mob30725_Die')
